import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const asset: AppRouteModule = {
  path: '/assets',
  name: 'Asset',
  component: LAYOUT,
  meta: {
    orderNo: 30,
    icon: 'ant-design:cluster-outlined',  
    title: t('routes.asset.assetManagement'),
    policy: 'AssetsManagement',
  },
  children: [
    {
      path: 'stove',
      name: 'stove',
      component: () => import('/@/views/asset/stove/Stove.vue'),
      meta: {
        title: t('routes.asset.stoveManagement'),
        icon: 'game-icons:gas-stove',
        policy: 'AssetsManagement.StoveManagement',
      },
    },
    {
      path: 'vehicle',
      name: 'vehicle',
      component: () => import('/@/views/asset/vehicle/Vehicle.vue'),
      meta: {
        title: t('routes.asset.vehicleManagement'),
        icon: 'carbon:vehicle-api',
        policy: 'AssetsManagement.VehicleManagement',
      },
    },
    {
      path: 'ladle',
      name: 'ladle',
      component: () => import('/@/views/asset/ladle/Ladle.vue'),
      meta: {
        title: t('routes.asset.ladleManagement'),
        icon: 'material-symbols-light:propane-tank-sharp',
        policy: 'AssetsManagement.LadleManagement',
      },
    }
  ]
};

export default asset;
